export default {
	network: {
		baseURL: process.env.NODE_ENV === 'development' ? 'https://satisfaction-test.pret-securise.com/mbsda' : 'https://satisfaction-test.pret-securise.com/mbsda',
		baseURL: 'https://satisfaction-test.pret-securise.com/mbsda',
		timeout: 30000,
		custom: {
			//设置网络请求timerid
			loadingTimer: 0,
			//忽略网络请求loading
			ignoreLoaing: false,
			errShowToast: true,
			completeFnc: function(res) {}
		},
		// 返回当前请求的task, options。请勿在此处修改options。非必填
		getTask: (task, options) => {
			// 相当于设置超时时间500ms
			// clearTimeout(getApp().globalData.loadingTimer);
			if (!options.custom.ignoreLoaing) {
				options.custom.loadingTimer = setTimeout(() => {
					uni.showLoading()
					options.custom.loadingTimer = null
				}, 500)
			}
		},
	}

}